package com.crdeng.business.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

@Data
public class ConsumerVO implements Serializable {

    private Long id;

    @ApiModelProperty(value = "物资消费方")
    @NotBlank(message = "物资消费方不能为空")
    private String name;

    @ApiModelProperty(value = "地址")
    @NotBlank(message = "地址不能为空")
    private String address;

    private Date createTime;

    private Date modifiedTime;

    @ApiModelProperty(value = "联系电话")
    @NotBlank(message = "联系电话不能为空")
    private String phone;
    @Min(value = 0,message = "排序要大于0")
    private Integer sort;

    @ApiModelProperty(value = "联系人姓名")
    @NotBlank(message = "联系人姓名不能为空")
    private String contact;

}
